package com.papa91.arcapp;/*package com.papa91.arcapp;

import java.util.List;

import com.papa91.arc.R;


import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;


public class GroupAdapter extends BaseAdapter
{

	private Context context;
	private List<String> list;

	static class ViewHolder
	{
		TextView groupItem;
	}

	public GroupAdapter(Context context, List<String> list)
	{
		this.context = context;
		this.list = list;
	}

	@Override
	public int getCount()
	{
		// TODO Auto-generated method stub

		return list.size();
	}

	@Override
	public Object getItem(int position)
	{
		// TODO Auto-generated method stub
		return list.get(position);
	}

	@Override
	public long getItemId(int position)
	{
		// TODO Auto-generated method stub
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup viewGroup)
	{
		// TODO Auto-generated method stub
		ViewHolder holder;
		if (convertView == null)
		{
			convertView = LayoutInflater.from(context).inflate(R.layout.game_catagory_item, null);
			holder = new ViewHolder();
			convertView.setTag(holder);
			holder.groupItem = (TextView) convertView.findViewById(R.id.tv_more_list);

		}
		else
		{
			holder = (ViewHolder) convertView.getTag();
		}
		// holder.groupItem.setTextColor(Color.BLACK);
		holder.groupItem.setText(list.get(position));

		return convertView;

	}

}
*/